# Template file for 'rpmalloc'
pkgname=rpmalloc
version=2.1.5
revision=1
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON"
hostmakedepends="ninja"
short_desc="General purpose memory allocator"
maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
license="MIT"
homepage="https://github.com/zelang-dev/rpmalloc"
distfiles="https://github.com/zelang-dev/rpmalloc/archive/refs/tags/${version}.tar.gz "
checksum=990ff048541dba99f62cd73833b50b4ed5187f001774de4ddc25d223cbedc268

do_install() {
	vbin build/atomicity_test
	vbin build/main_test
	vbin build/storage_test
	vmkdir usr/lib
	vinstall build/librpmalloc.so 755 usr/lib
}

post_install() {
	vlicense LICENSE
}
